<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Universum.Model.Domain.Article>" %>
<asp:Content ID="Script" ContentPlaceHolderID="ScriptPlaceHolder" runat="server">
<% Html.RenderPartial("EditorAndDateUserControl"); %>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Create
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Create</h2>

    <%= Html.ValidationSummary("Create was unsuccessful. Please correct the errors and try again.") %>

    <% using (Html.BeginForm()) {%>

        <fieldset>
            <legend>Fields</legend>
            <p>
                <label for="Title">Title:</label>
                <%= Html.TextBox("Title", null, new { @class="span-12" })%>
                <%= Html.ValidationMessage("Title", "*") %>
            </p>
            <p>
                <label for="Text">Text:</label>
                <%= Html.TextArea("Text", "", new { @class="marked"})%>
                <%= Html.ValidationMessage("Text", "*") %>
            </p>
            <p>
                <label for="Publish">Publish:</label>
                <%= Html.TextBox("Publish", DateTime.Now.ToShortDateString(), new { @class = "date" })%>
                <%= Html.ValidationMessage("Publish", "*") %>
            </p>
            <p>
                <label for="Created">Created:</label>
                <%= Html.TextBox("Created", DateTime.Now.ToShortDateString(), new { @class = "date" })%>
                <%= Html.ValidationMessage("Created", "*") %>
            </p>
            <p>
                <input type="submit" value="Create" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%=Html.UserActionLink<ArticleController>( callAction=> callAction.Index(), "Back to List") %>
    </div>

</asp:Content>

